﻿<sdk:ChildWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ctr="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Infrastructure_Converters="clr-namespace:iFinance.Infrastructure.Converters;assembly=iFinance.Infrastructure.SL"
    xmlns:iFinance_Controls="clr-namespace:iFinance.Controls;assembly=iFinance.Controls.SL" 
    xmlns:Infrastructure_Services="clr-namespace:iFinance.Infrastructure.Services;assembly=iFinance.Infrastructure.SL"
    x:Class="iFinance.Modules.Authorization.RegisterView"
    mc:Ignorable="d"
    d:DesignHeight="283" d:DesignWidth="360" Title="用户注册">
    <sdk:ChildWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/iFinance.Modules.Authorization.SL;component/TempResourceDictionary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
        <Infrastructure_Converters:NegateBoolConverter x:Key="NegateBoolConverter"/>
    </sdk:ChildWindow.Resources>
    <Grid x:Name="LayoutRoot" Background="{StaticResource BGBrush}" Width="302" Height="220" Infrastructure_Services:ButtonServices.DefaultButton="{Binding ElementName=btnRegister}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="32" />
        </Grid.RowDefinitions>
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="spItems">
            <iFinance_Controls:ValidationInput Margin="22,0,0,4" InputWidth="122" Value="{Binding UserID, Mode=TwoWay}" VerticalAlignment="Top" />
            <iFinance_Controls:ValidationInput Margin="22,0,0,4" InputWidth="122" Value="{Binding Password, Mode=TwoWay}" VerticalAlignment="Top" Type="Password" />
            <iFinance_Controls:ValidationInput Margin="0,0,0,4" InputWidth="122" Value="{Binding PasswordConfirm, Mode=TwoWay}" VerticalAlignment="Top" Type="Password" />
            <iFinance_Controls:ValidationInput Margin="22,0,0,4" InputWidth="122" Value="{Binding NickName, Mode=TwoWay}" VerticalAlignment="Top" />
            <iFinance_Controls:ValidationInput Margin="0,0,0,4" InputWidth="122" Value="{Binding Question, Mode=TwoWay}" VerticalAlignment="Top" />
            <iFinance_Controls:ValidationInput Margin="22,0,0,4" InputWidth="122" Value="{Binding Answer, Mode=TwoWay}" VerticalAlignment="Top" />
        </StackPanel>
        <Button x:Name="btnRegister" Content="注册" Height="24" HorizontalAlignment="Center" Width="100" Grid.Row="1" Command="{Binding RegCommand}"/>
    </Grid>
</sdk:ChildWindow>
